home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmCreateSimpleMenuBar.z / XmCreateSimpleMenuBar
Encoding:
Text File  |  2003-11-18  |  3.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeMMMMeeeennnnuuuuBBBBaaaarrrr((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeeMMMMeeeennnnuuuuBBBBaaaarrrr((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_M_e_n_u_B_a_r    - A RowColumn widget convenience
  10.       creation function
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/RowColumn.h>
  14.  
  15.       Widget XmCreateSimpleMenuBar (ppppaaaarrrreeeennnntttt,,,,    nnnnaaaammmmeeee,,,, aaaarrrrgggglllliiiisssstttt,,,, aaaarrrrggggccccoooouuuunnnntttt)
  16.            _W_i_d_g_e_t     ppppaaaarrrreeeennnntttt;
  17.            _S_t_r_i_n_g     nnnnaaaammmmeeee;
  18.            _A_r_g_L_i_s_t     aaaarrrrgggglllliiiisssstttt;
  19.            _C_a_r_d_i_n_a_l     aaaarrrrggggccccoooouuuunnnntttt;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_C_r_e_a_t_e_S_i_m_p_l_e_M_e_n_u_B_a_r    creates    an instance of a RowColumn
  23.       widget of type _X_m_M_E_N_U__B_A_R and    returns    the associated widget
  24.       ID.
  25.  
  26.       This routine creates a MenuBar and its CascadeButtonGadget
  27.       children.  The name of each button is    button_nnnn, where    nnnn is
  28.       an integer from 0 to one minus the number of buttons in the
  29.       menu.     Buttons are named and created in the order in which
  30.       they are specified in    the RowColumn simple menu creation
  31.       resources supplied in    the argument list.
  32.  
  33.       ppppaaaarrrreeeennnntttt
  34.            Specifies the parent widget ID
  35.  
  36.       nnnnaaaammmmeeee Specifies the name of the created widget
  37.  
  38.       aaaarrrrgggglllliiiisssstttt
  39.            Specifies the argument list
  40.  
  41.       aaaarrrrggggccccoooouuuunnnntttt
  42.            Specifies the number of attribute/value pairs in    the
  43.            argument    list (aaaarrrrgggglllliiiisssstttt)
  44.  
  45.       A number of resources    exist specifically for use with    this
  46.       and other simple menu    creation routines.  The    only button
  47.       type allowed in the _X_m_N_b_u_t_t_o_n_T_y_p_e resource is
  48.       _X_m_C_A_S_C_A_D_E_B_U_T_T_O_N.  For    a complete definition of RowColumn and
  49.       its associated resources, see    _X_m_R_o_w_C_o_l_u_m_n(_3_X).
  50.  
  51.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  52.       Returns the RowColumn    widget ID.
  53.  
  54.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  55.       _X_m_C_r_e_a_t_e_M_e_n_u_B_a_r(_3_X), _X_m_C_r_e_a_t_e_R_o_w_C_o_l_u_m_n(_3_X), _X_m_R_o_w_C_o_l_u_m_n(_3_X),
  56.       and _X_m_V_a_C_r_e_a_t_e_S_i_m_p_l_e_M_e_n_u_B_a_r(_3_X).
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.